package no.hig.imt4721;

import java.util.ArrayList;
import java.util.List;

import no.hig.imt4721.model.Subject;
import no.hig.imt4721.preprocessing.Preprocessor;
import no.hig.imt4721.tests.Test;
import no.hig.imt4721.tests.TestMeanAbsoluteDynamic;


public class Main
{
	public static void main(String[] args)
	{
		try
		{
			List<Subject> subjects = new Preprocessor().preprocessAll("data.csv");
			
//			List<Double> learningCurve = Statistics.calculateLearningCurve(subjects);
//			
//			Graph graph = new Graph();
//			graph.draw(learningCurve, "Learning Curve");
//			
//			for(Double d : learningCurve)
//			{
//				System.out.println(d);
//			}
			
			List<Test> tests = new ArrayList<Test>();

//			for(int i = 0; i < 8; i++)
//			{
				Test test1 = new TestMeanAbsoluteDynamic(subjects, "" , 3, 4, 50);
				tests.add(test1);
//			}
	
			for(Test test : tests)
			{
				test.printEER();
			}
			
//			DETGraph graph = new DETGraph();
//			graph.draw(tests);
			
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}
}
